/**
 * @author MIAO
 * Created on 2011-10-6
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Factory.BadDesign;

public class StampedeSimulator {
	Actor actor = null;

	public void addActor(String type) {
if (type.equals("buffalo")) {
actor = new Buffalo();
} else if (type.equals("horse")) {
 actor = new Horse();
} else if (type.equals("cowboy")) {
actor = new Cowboy();
} else if (type.equals("cowgirl")) {
 actor = new Cowgirl();
}
}
}
